package com.xhtt.modules.cfg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xhtt.modules.cfg.model.RelateObj;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author feipc
 * @since 2019-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CfgTubeRelate extends Model<CfgTubeRelate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer tubeId;

    /**
     * 1罐2硬3泵4码5软
     */
    private Integer type;

    /**
     * 间距
     */
    private Integer gap;

    private String memo;

    private Integer relateId;

    private String name;

    @TableField(exist = false)
    private String position;

    @TableField(exist = false)
    private List<RelateObj> subRelates;

    @TableField(exist = false)
    private String comUsedProd;//常用产品
    @TableField(exist = false)
    private String spareUsedProd;//备用产品

}
